home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 5128 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  981 b 

  1. Path: asterix.uni-muenster.de!kutzeln
  2. From: Gerhard Kutzelnigg <kutzeln@uni-muenster.de>
  3. Newsgroups: comp.lang.c++
  4. Subject: inherited classes / functions
  5. Date: Fri, 2 Feb 1996 18:34:43 +0100
  6. Organization: Westfaelische Wilhelms-Universitaet Muenster, Germany
  7. Message-ID: <Pine.A32.3.91.960202182844.45749A-100000@asterix.uni-muenster.de>
  8. NNTP-Posting-Host: asterix.uni-muenster.de
  9. Mime-Version: 1.0
  10. Content-Type: TEXT/PLAIN; charset=US-ASCII
  11.  
  12.  
  13. Hi All,
  14.  
  15. when using inherited virtual functions, how can I simply call the
  16. "inherited" function without knowing the name of the parent class? 
  17.  
  18. -> While I am developing a graphical user interface, I sometimes need to 
  19. "insert" a class in the class hierarchy, so I don't want to change all the 
  20. "subclasses" code when "inserting" the new class. In Turbo Pascal there was
  21. the keyword "inherited" so I could call something like 
  22. "inherited myfunction ();" but how can I resolve this expression in c++ ???
  23.  
  24. cu gerry
  25.  
  26. kutzeln@uni-muenster.de
  27.